package result;

public class TreeAction {
	private Node root;
	
	public String execute(){
		root = new Node("1000","当当系统");
		root.getChilds().add(new Node("1001","用户管理"));
		root.getChilds().add(new Node("1002","商品管理"));
		root.getChilds().add(new Node("1003","购物车管理"));
		root.getChilds().add(new Node("1004","订单管理"));
		Node n1 = new Node("1005","权限管理");
		n1.getChilds().add(new Node("10050","权限添加"));
		n1.getChilds().add(new Node("10050","权限管理"));
		n1.getChilds().add(new Node("10050","权限查询"));
		root.getChilds().add(n1);
		return "success";
	}

	public Node getRoot() {
		return root;
	}

	public void setRoot(Node root) {
		this.root = root;
	}
}
